package com.isczy.userapi;

import com.isczy.utils.DataResult;
import com.isczy.utils.ordervo.UcenterMemberOrder;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;

@Component
@FeignClient("service-user")
public interface UserFeignService {

    //根据用户id获取用户信息
    @PostMapping("/userservice/ucenter-member/getUserInfoOrder/{id}")
    UcenterMemberOrder getUserInfoOrder(@PathVariable("id") String id);

    //查询某一天注册人数
    @GetMapping("/userservice/ucenter-member/countRegister/{day}")
    public DataResult countRegister(@PathVariable("day") String day);
}
